﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage1.Master" Inherits="System.Web.Mvc.ViewPage<ComputerShopE3.Models.CPU>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Tạo sản phẩm mới</h2>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>
    <%=ViewData["error"] %>
    <% if (null == ViewData["error"]) 
            Html.RenderPartial("SAN_PHAM_Template");%>
    <table>
    <tbody>
        <tr>           
            <td><label for="Socket">Socket</label></td>
            <td>
                <%= Html.TextBox("linhkien.Socket") %>
                <%= Html.ValidationMessage("Socket", "*") %>
            </td>
        </tr>
        <tr>           
            <td> <label for="Cache">Bus:</label></td>
            <td>
                <%= Html.TextBox("linhkien.Bus") %>
                <%= Html.ValidationMessage("Bus", "*") %>
            </td>
        </tr>
        <tr>           
            <td> <label for="Cache">Cache:</label></td>
            <td>
                <%= Html.TextBox("linhkien.Cache") %>
                <%= Html.ValidationMessage("Cache", "*") %>
            </td>
        </tr>
        <tr>           
            <td><label for="Speed">Speed:</label></td>
            <td>
                <%= Html.TextBox("linhkien.Speed") %>
                <%= Html.ValidationMessage("Speed", "*") %>
            </td>
            </tr>
            </tbody>
            </table>
     <input type="Tạo mới" value="Create" />
     
    <% } %>

    <div>
        <%=Html.ActionLink("Quay lại danh sách", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">

    <title>CPU</title>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PersonalMenu" runat="server">
</asp:Content>

